package com.xja.webchat.mapper;

import com.xja.webchat.entity.Message;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;
@Mapper
public interface MessageMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Message record);

    int insertSelective(Message record);

    Message selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKey(Message record);
    //查询聊天记录
    List<Message> selectMassageList(Map<String,Integer> map);
    //修改聊天记录的状态
    void updateMessageStatus(Map<String,Integer> map);
}